package com.company.jdk.methodRef;

/**
 * @author yingfing
 * @create 2020--10--03 22:27
 * @describe
 */
public class TestInterface {
    public static void main(String[] args) {
        BusFactory.showBuses();
    }
}

interface BusFactory {
    int num = 10; //public final

    Bus createBus(String falg);

    default void println() {
        // 默认方法
        System.out.println("BusFactory ... ");
    }

    static void showBuses() {
        // 静态方法
        System.out.println("BusFactory showBuses ... ");
    }

}

class Bus {
}